Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix absolute links #385

Closed
wants to merge 4 commits into from
Closed

Fix absolute links #385

wants to merge 4 commits into from

Conversation

DominikN
Copy link
Member

@DominikN DominikN commented Aug 12, 2024

Description

Links in README.md files are absolute and some of them don't work.

Modifications

Changed absolute links in *.md files from .eg [panther_description](https://github.com/husarion/panther_ros/panther_description/) to [panther_description](../panther_description/)

Summary by CodeRabbit

  • Documentation
    • Updated documentation across multiple components to use relative paths for links, enhancing portability and usability for users navigating the project structure.
    • Adjusted image source paths in the panther_lights documentation to relative links, improving accessibility regardless of hosting environment.

Copy link
Contributor

coderabbitai bot commented Aug 12, 2024

Walkthrough

The recent updates across multiple README files for the Panther robot project focus on enhancing documentation portability. By converting absolute URLs to relative paths, users can now navigate resources more easily within the project's structure, regardless of where it is hosted. This change improves usability without impacting the functionality or logic of the codebase.

Changes

Files Change Summary
panther_bringup/README.md Updated links for battery_driver and ekf_filter nodes to relative paths; adjusted ekf_config.yaml references.
panther_gazebo/README.md Changed URLs for simulation.launch.py, WH01_controller.yaml, and WH01.yaml to relative paths; updated ANT02 component instructions.
panther_hardware_interfaces/README.md Modified links for panther_description and panther_controller packages to relative paths; updated code structure link.
panther_lights/README.md Changed absolute image paths in animations table to relative links to improve documentation portability.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant Documentation
    participant Resources

    User->>Documentation: Access README
    Documentation->>Resources: Fetch relative path links
    Resources-->>Documentation: Return resource details
    Documentation-->>User: Display information
Loading

Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

Share
Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (invoked as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 4

Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 2fb4b49 and 6fae3a2.

Files selected for processing (4)
  • panther_bringup/README.md (1 hunks)
  • panther_gazebo/README.md (3 hunks)
  • panther_hardware_interfaces/README.md (5 hunks)
  • panther_lights/README.md (1 hunks)
Files skipped from review due to trivial changes (1)
  • panther_bringup/README.md
Additional context used
LanguageTool
panther_gazebo/README.md

[uncategorized] ~38-~38: You might be missing the article “the” here.
Context: ...ng Wheel Type It is possible to change Panther wheels model in simulation. All you nee...

(AI_EN_LECTOR_MISSING_DETERMINER_THE)


[uncategorized] ~38-~38: You might be missing the article “the” here.
Context: ...sible to change Panther wheels model in simulation. All you need to do is to point to new ...

(AI_EN_LECTOR_MISSING_DETERMINER_THE)

panther_hardware_interfaces/README.md

[typographical] ~26-~26: It seems that a comma is missing.
Context: ... resource manager. To use this hardware interface you have to add it to your URDF (you ca...

(IN_ORDER_TO_VB_COMMA)


[formatting] ~26-~26: Use a comma after introducing a concessive statement.
Context: ...oller](../panther_controller) package). That said apart from the usual interface provided...

(EVEN_SO_PREMIUM)


[typographical] ~101-~101: It seems that a comma is missing.
Context: ... resource manager. To use this hardware interface you have to add it to your URDF (you ca...

(IN_ORDER_TO_VB_COMMA)

Markdownlint
panther_lights/README.md

163-163: null
Images should have alternate text (alt text)

(MD045, no-alt-text)


164-164: null
Images should have alternate text (alt text)

(MD045, no-alt-text)


165-165: null
Images should have alternate text (alt text)

(MD045, no-alt-text)


166-166: null
Images should have alternate text (alt text)

(MD045, no-alt-text)


167-167: null
Images should have alternate text (alt text)

(MD045, no-alt-text)


168-168: null
Images should have alternate text (alt text)

(MD045, no-alt-text)


169-169: null
Images should have alternate text (alt text)

(MD045, no-alt-text)


170-170: null
Images should have alternate text (alt text)

(MD045, no-alt-text)


171-171: null
Images should have alternate text (alt text)

(MD045, no-alt-text)

Additional comments not posted (6)
panther_gazebo/README.md (2)

14-14: Correct use of relative links.

The change to a relative link for simulation.launch.py enhances portability and usability.


77-77: Correct use of relative links.

The change to a relative link for the components.yaml file improves documentation accessibility.

panther_hardware_interfaces/README.md (4)

61-61: Correct use of relative links.

The change to a relative link for panther_macro.urdf.xacro enhances documentation accessibility.


74-76: Correct use of relative links.

The change to relative links for canopen_configuration.yaml improves documentation portability.


109-109: Correct use of relative links.

The change to a relative link for panther_macro.urdf.xacro enhances documentation accessibility.


173-173: Correct use of relative links.

The change to a relative link for CODE_STRUCTURE.md ensures consistency and improves documentation usability.

@@ -35,7 +35,7 @@ The recommended method for launching the simulation is by utilizing the [simulat

### Changing Wheel Type

It is possible to change Panther wheels model in simulation. All you need to do is to point to new wheel and controller configuration files using `wheel_config_path` and `controller_config_path` parameters. These files should be based on the default ones, i.e., [WH01_controller.yaml](https://github.com/husarion/panther_ros/panther_controller/config/WH01_controller.yaml) and [WH01.yaml](https://github.com/husarion/panther_ros/panther_description/config/WH01.yaml).
It is possible to change Panther wheels model in simulation. All you need to do is to point to new wheel and controller configuration files using `wheel_config_path` and `controller_config_path` parameters. These files should be based on the default ones, i.e., [WH01_controller.yaml](../panther_controller/config/WH01_controller.yaml) and [WH01.yaml](../panther_description/config/WH01.yaml).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add missing article "the".

The sentence "It is possible to change Panther wheels model in simulation." is missing the article "the" before "Panther wheels model."

- It is possible to change Panther wheels model in simulation.
+ It is possible to change the Panther wheels model in simulation.
Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
It is possible to change Panther wheels model in simulation. All you need to do is to point to new wheel and controller configuration files using `wheel_config_path` and `controller_config_path` parameters. These files should be based on the default ones, i.e., [WH01_controller.yaml](../panther_controller/config/WH01_controller.yaml) and [WH01.yaml](../panther_description/config/WH01.yaml).
It is possible to change the Panther wheels model in simulation. All you need to do is to point to new wheel and controller configuration files using `wheel_config_path` and `controller_config_path` parameters. These files should be based on the default ones, i.e., [WH01_controller.yaml](../panther_controller/config/WH01_controller.yaml) and [WH01.yaml](../panther_description/config/WH01.yaml).
Tools
LanguageTool

[uncategorized] ~38-~38: You might be missing the article “the” here.
Context: ...ng Wheel Type It is possible to change Panther wheels model in simulation. All you nee...

(AI_EN_LECTOR_MISSING_DETERMINER_THE)


[uncategorized] ~38-~38: You might be missing the article “the” here.
Context: ...sible to change Panther wheels model in simulation. All you need to do is to point to new ...

(AI_EN_LECTOR_MISSING_DETERMINER_THE)

Comment on lines +163 to +171
| 0 | E_STOP | 3 | <img src="../panther_lights/.docs/E_STOP.webp" width="400"> |
| 1 | READY | 3 | <img src="../panther_lights/.docs/READY.webp" width="400"> |
| 2 | ERROR | 1 | <img src="../panther_lights/.docs/ERROR.webp" width="400"> |
| 3 | MANUAL_ACTION | 3 | <img src="../panther_lights/.docs/MANUAL_ACTION.webp" width="400"> |
| 4 | AUTONOMOUS_ACTION | 3 | <img src="../panther_lights/.docs/AUTONOMOUS_ACTION.webp" width="400"> |
| 5 | GOAL_ACHIEVED | 2 | <img src="../panther_lights/.docs/GOAL_ACHIEVED.webp" width="400"> |
| 6 | LOW_BATTERY | 2 | <img src="../panther_lights/.docs/LOW_BATTERY.webp" width="400"> |
| 7 | CRITICAL_BATTERY | 2 | <img src="../panther_lights/.docs/CRITICAL_BATTERY.webp" width="400"> |
| 9 | CHARGING_BATTERY | 3 | <img src="../panther_lights/.docs/CHARGING_BATTERY.webp" width="400"> |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add alt text to images.

The images in the table lack alt text, which is important for accessibility.

- |   0   | E_STOP            |    3     | <img src="../panther_lights/.docs/E_STOP.webp" width="400">            |
+ |   0   | E_STOP            |    3     | <img src="../panther_lights/.docs/E_STOP.webp" width="400" alt="E_STOP">            |
- |   1   | READY             |    3     | <img src="../panther_lights/.docs/READY.webp" width="400">             |
+ |   1   | READY             |    3     | <img src="../panther_lights/.docs/READY.webp" width="400" alt="READY">             |
- |   2   | ERROR             |    1     | <img src="../panther_lights/.docs/ERROR.webp" width="400">             |
+ |   2   | ERROR             |    1     | <img src="../panther_lights/.docs/ERROR.webp" width="400" alt="ERROR">             |
- |   3   | MANUAL_ACTION     |    3     | <img src="../panther_lights/.docs/MANUAL_ACTION.webp" width="400">     |
+ |   3   | MANUAL_ACTION     |    3     | <img src="../panther_lights/.docs/MANUAL_ACTION.webp" width="400" alt="MANUAL_ACTION">     |
- |   4   | AUTONOMOUS_ACTION |    3     | <img src="../panther_lights/.docs/AUTONOMOUS_ACTION.webp" width="400"> |
+ |   4   | AUTONOMOUS_ACTION |    3     | <img src="../panther_lights/.docs/AUTONOMOUS_ACTION.webp" width="400" alt="AUTONOMOUS_ACTION"> |
- |   5   | GOAL_ACHIEVED     |    2     | <img src="../panther_lights/.docs/GOAL_ACHIEVED.webp" width="400">     |
+ |   5   | GOAL_ACHIEVED     |    2     | <img src="../panther_lights/.docs/GOAL_ACHIEVED.webp" width="400" alt="GOAL_ACHIEVED">     |
- |   6   | LOW_BATTERY       |    2     | <img src="../panther_lights/.docs/LOW_BATTERY.webp" width="400">       |
+ |   6   | LOW_BATTERY       |    2     | <img src="../panther_lights/.docs/LOW_BATTERY.webp" width="400" alt="LOW_BATTERY">       |
- |   7   | CRITICAL_BATTERY  |    2     | <img src="../panther_lights/.docs/CRITICAL_BATTERY.webp" width="400">  |
+ |   7   | CRITICAL_BATTERY  |    2     | <img src="../panther_lights/.docs/CRITICAL_BATTERY.webp" width="400" alt="CRITICAL_BATTERY">  |
- |   9   | CHARGING_BATTERY  |    3     | <img src="../panther_lights/.docs/CHARGING_BATTERY.webp" width="400">  |
+ |   9   | CHARGING_BATTERY  |    3     | <img src="../panther_lights/.docs/CHARGING_BATTERY.webp" width="400" alt="CHARGING_BATTERY">  |
Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
| 0 | E_STOP | 3 | <img src="../panther_lights/.docs/E_STOP.webp" width="400"> |
| 1 | READY | 3 | <img src="../panther_lights/.docs/READY.webp" width="400"> |
| 2 | ERROR | 1 | <img src="../panther_lights/.docs/ERROR.webp" width="400"> |
| 3 | MANUAL_ACTION | 3 | <img src="../panther_lights/.docs/MANUAL_ACTION.webp" width="400"> |
| 4 | AUTONOMOUS_ACTION | 3 | <img src="../panther_lights/.docs/AUTONOMOUS_ACTION.webp" width="400"> |
| 5 | GOAL_ACHIEVED | 2 | <img src="../panther_lights/.docs/GOAL_ACHIEVED.webp" width="400"> |
| 6 | LOW_BATTERY | 2 | <img src="../panther_lights/.docs/LOW_BATTERY.webp" width="400"> |
| 7 | CRITICAL_BATTERY | 2 | <img src="../panther_lights/.docs/CRITICAL_BATTERY.webp" width="400"> |
| 9 | CHARGING_BATTERY | 3 | <img src="../panther_lights/.docs/CHARGING_BATTERY.webp" width="400"> |
| 0 | E_STOP | 3 | <img src="../panther_lights/.docs/E_STOP.webp" width="400" alt="E_STOP"> |
| 1 | READY | 3 | <img src="../panther_lights/.docs/READY.webp" width="400" alt="READY"> |
| 2 | ERROR | 1 | <img src="../panther_lights/.docs/ERROR.webp" width="400" alt="ERROR"> |
| 3 | MANUAL_ACTION | 3 | <img src="../panther_lights/.docs/MANUAL_ACTION.webp" width="400" alt="MANUAL_ACTION"> |
| 4 | AUTONOMOUS_ACTION | 3 | <img src="../panther_lights/.docs/AUTONOMOUS_ACTION.webp" width="400" alt="AUTONOMOUS_ACTION"> |
| 5 | GOAL_ACHIEVED | 2 | <img src="../panther_lights/.docs/GOAL_ACHIEVED.webp" width="400" alt="GOAL_ACHIEVED"> |
| 6 | LOW_BATTERY | 2 | <img src="../panther_lights/.docs/LOW_BATTERY.webp" width="400" alt="LOW_BATTERY"> |
| 7 | CRITICAL_BATTERY | 2 | <img src="../panther_lights/.docs/CRITICAL_BATTERY.webp" width="400" alt="CRITICAL_BATTERY"> |
| 9 | CHARGING_BATTERY | 3 | <img src="../panther_lights/.docs/CHARGING_BATTERY.webp" width="400" alt="CHARGING_BATTERY"> |
Tools
Markdownlint

163-163: null
Images should have alternate text (alt text)

(MD045, no-alt-text)


164-164: null
Images should have alternate text (alt text)

(MD045, no-alt-text)


165-165: null
Images should have alternate text (alt text)

(MD045, no-alt-text)


166-166: null
Images should have alternate text (alt text)

(MD045, no-alt-text)


167-167: null
Images should have alternate text (alt text)

(MD045, no-alt-text)


168-168: null
Images should have alternate text (alt text)

(MD045, no-alt-text)


169-169: null
Images should have alternate text (alt text)

(MD045, no-alt-text)


170-170: null
Images should have alternate text (alt text)

(MD045, no-alt-text)


171-171: null
Images should have alternate text (alt text)

(MD045, no-alt-text)

@@ -23,7 +23,7 @@ Package that implements SystemInterface from ros2_control for Panther.
[//]: # (ROS_API_NODE_DESCRIPTION_START)

This package doesn't contain any standalone nodes - `PantherSystem` is a plugin loaded by the resource manager.
To use this hardware interface you have to add it to your URDF (you can check how to do it in [panther_description](https://github.com/husarion/panther_ros/panther_description/)) and add a controller (example configuration provided in [panther_controller](https://github.com/husarion/panther_ros/panther_controller/) package).
To use this hardware interface you have to add it to your URDF (you can check how to do it in [panther_description](../panther_description)) and add a controller (example configuration provided in [panther_controller](../panther_controller) package).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add missing comma.

A comma is needed after "That said" for clarity.

- That said apart from the usual interface provided by the ros2_control, this plugin also provides additional published topics and services specific for Panther.
+ That said, apart from the usual interface provided by the ros2_control, this plugin also provides additional published topics and services specific for Panther.

Committable suggestion was skipped due to low confidence.

Tools
LanguageTool

[typographical] ~26-~26: It seems that a comma is missing.
Context: ... resource manager. To use this hardware interface you have to add it to your URDF (you ca...

(IN_ORDER_TO_VB_COMMA)


[formatting] ~26-~26: Use a comma after introducing a concessive statement.
Context: ...oller](../panther_controller) package). That said apart from the usual interface provided...

(EVEN_SO_PREMIUM)

@@ -98,15 +98,15 @@
[//]: # (ROS_API_NODE_DESCRIPTION_START)

This package doesn't contain any standalone nodes - `PantherImuSensor` is a plugin loaded by the resource manager.
To use this hardware interface you have to add it to your URDF (you can check how to do it in [panther_description](https://github.com/husarion/panther_ros/tree/ros2-devel/panther_description/)) and add an `imu_sensor_broadcaster` controller (example configuration provided in [panther_controller](https://github.com/husarion/panther_ros/tree/ros2-devel/panther_controller/) package).
To use this hardware interface you have to add it to your URDF (you can check how to do it in [panther_description](../panther_description/)) and add an `imu_sensor_broadcaster` controller (example configuration provided in [panther_controller](../panther_controller/) package).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add missing comma.

A comma is needed after "To use this hardware interface" for clarity.

- To use this hardware interface you have to add it to your URDF (you can check how to do it in [panther_description](../panther_description/)) and add an `imu_sensor_broadcaster` controller (example configuration provided in [panther_controller](../panther_controller/) package).
+ To use this hardware interface, you have to add it to your URDF (you can check how to do it in [panther_description](../panther_description/)) and add an `imu_sensor_broadcaster` controller (example configuration provided in [panther_controller](../panther_controller/) package).
Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
To use this hardware interface you have to add it to your URDF (you can check how to do it in [panther_description](../panther_description/)) and add an `imu_sensor_broadcaster` controller (example configuration provided in [panther_controller](../panther_controller/) package).
To use this hardware interface, you have to add it to your URDF (you can check how to do it in [panther_description](../panther_description/)) and add an `imu_sensor_broadcaster` controller (example configuration provided in [panther_controller](../panther_controller/) package).
Tools
LanguageTool

[typographical] ~101-~101: It seems that a comma is missing.
Context: ... resource manager. To use this hardware interface you have to add it to your URDF (you ca...

(IN_ORDER_TO_VB_COMMA)

@pawelirh pawelirh closed this Aug 13, 2024
@pawelirh pawelirh deleted the fix-absolute-links branch August 21, 2024 09:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants